package com.zyh.demo;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class ExceptionDemo1 {
    public static void main(String[] args) {
        //运行时异常
        int[] arr = new int[10];
        System.out.println(arr[10]);
        //编译时期异常
        /*FileInputStream fileInputStream = new FileInputStream("");
        FileNotFoundException fileNotFoundException = new FileNotFoundException();*/
    }

}
